package com.twu.biblioteca;


public class ListofBooks {
    public int PopulateList(Book Library[]){                //Since we do not have a database yet,the book data is hardcoded
        Library[0]=new Book("David Twist",2,2);
        Library[1]=new Book("20,000 Metres Under the Sea",0,1);
        Library[2]=new Book("Treasure Planet",1,2);
        Library[3]=new Book("Call of the Mild",0,2);
        Library[4]=new Book("Black Sheep",1,1);
        Library[5]=new Book("Jungle Novella",2,3);
        Library[6]=new Book("Zartan",0,2);
        Library[7]=new Book("Alucard",0,1);
        Library[8]=new Book("Headfirst Java",4,4);
        Library[9]=new Book("The Cure for Conjuctivitis",1,3);
        return 10;
    }
   public void Booklist(Book Library[],int n)
   {
       int Count;
       for (Count=0;Count<n;Count++)
           System.out.println(Library[Count].BookName);
   }

}
